"""
Sonni top
"""

import random

AAA = random.randint(1, 101)
USER_NUM = 0
CNT = 0

while True:
    USER_NUM = int(input("Sonni top"))
    CNT += 1

    if USER_NUM == AAA:
        print(f'Sonni topdingiz. Urunishlar soni: {CNT}')
        print('Raxmat')
        break
    if USER_NUM >= AAA:
        print('Komputer o\'lagan son kichik.')

    else:
        print("Komputer o'ylagan son katta")
